Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Cost function in QP formulation generation. #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrino-meli
Copy link

The cost function adds cost on the inital state x_0 that is constraint to be equal to x_init. Now we just make the initial cost to be 0. This will result in a sparser system and therefor in faster execution and less memory ussage. Even though the argument can be made that the change is negligible.

I hope this change helps anybody that uses this code to generate a QP problem from an MPC one.

The cost function adds cost on the inital state x_0 that is constraint to be equal to x_init.
Now we just make the initial cost to be 0. This will result in a sparser system and therefor in faster execution and less memory ussage. Even though the argument can be made that the change is negligible.

I hope this change helps anybody that uses this code to generate a QP problem from an MPC one.
@CLAassistant
Copy link

CLAassistant commented Jun 14, 2023

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants